package springboot.tools.model;

import com.google.common.collect.Lists;
import org.apache.poi.ss.usermodel.CellStyle;

import java.util.List;

/**
 * @ClassName Column
 * @Author weikaikai
 * @Description
 * @Date 2020/6/9
 */
public class Column {
    //单元格内容
    private String content;
    //这个单元格的集合
    private List<Column> listColumn = Lists.newArrayList();
    //excel第几行
    int row;
    //excel第几列
    int col;
    //excel 跨多少行
    int rLen;
    //excel跨多少列
    int cLen;
    private CellStyle cellStyle;
    private boolean isCellRangeBorder = true;

    public Column(String content, int row, int col, int rLen, int cLen) {
        this.content = content;
        this.row = row;
        this.col = col;
        this.rLen = rLen;
        this.cLen = cLen;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public List<Column> getListColumn() {
        return listColumn;
    }

    public void setListColumn(List<Column> listColumn) {
        this.listColumn = listColumn;
    }

    public int getRow() {
        return row;
    }

    public void setRow(int row) {
        this.row = row;
    }

    public int getCol() {
        return col;
    }

    public void setCol(int col) {
        this.col = col;
    }

    public int getrLen() {
        return rLen;
    }

    public void setrLen(int rLen) {
        this.rLen = rLen;
    }

    public int getcLen() {
        return cLen;
    }

    public void setcLen(int cLen) {
        this.cLen = cLen;
    }

    public CellStyle getCellStyle() {
        return cellStyle;
    }

    public void setCellStyle(CellStyle cellStyle) {
        this.cellStyle = cellStyle;
    }

    public boolean isCellRangeBorder() {
        return isCellRangeBorder;
    }

    public void setCellRangeBorder(boolean cellRangeBorder) {
        isCellRangeBorder = cellRangeBorder;
    }
}
